﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StockMatch.Host.WindowsService;

namespace StockMatch.Host
{
    class Program
    {
        static void Main(string[] args)
        {
            string serviceName = ConfigurationManager.AppSettings["ServiceName"];
            serviceName = serviceName.Trim();
            if (string.IsNullOrEmpty(serviceName))
            {
                serviceName = "QYCFService";
            }

            ServiceStartInfo serviceStartInfo = new ServiceStartInfo();
            serviceStartInfo.ServiceName = serviceName;
            serviceStartInfo.DisplayName = serviceName;
            serviceStartInfo.Description = "秦涌财富" + serviceName;
            ServiceStarter.Start(new ServiceCore(), new ConsoleHost(), serviceStartInfo, args);

        }
    }
}
